package com.dianpingmedia.simulate.model;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

public class IFlyReviewEntity {

    public static class Request{
        @NotBlank(message = "id can't be empty")
        private String id;
        @NotBlank(message = "materialId can't be empty")
        private String materialId;
        @NotNull(message = "status can't be empty")
        private Integer status;
        @NotEmpty(message = "positionList can't be empty")
        private List<String> positionList;
        @NotNull(message = "reason can't be empty")
        private String reason;
        @NotNull(message = "sspId can't be empty")
        private String sspId;
        @NotNull(message = "token can't be empty")
        private String token;
        @NotNull(message = "sign can't be empty")
        private String sign;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMaterialId() {
            return materialId;
        }

        public void setMaterialId(String materialId) {
            this.materialId = materialId;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public List<String> getPositionList() {
            return positionList;
        }

        public void setPositionList(List<String> positionList) {
            this.positionList = positionList;
        }

        public String getReason() {
            return reason;
        }

        public void setReason(String reason) {
            this.reason = reason;
        }

        public String getSspId() {
            return sspId;
        }

        public void setSspId(String sspId) {
            this.sspId = sspId;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }
    }


    public static class Response{
        private Integer errorCode;
        private String message;

        public Integer getErrorCode() {
            return errorCode;
        }

        public void setErrorCode(Integer errorCode) {
            this.errorCode = errorCode;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }
}
